import 'package:flutter_webrtc/flutter_webrtc.dart';

class Session {
  String pid;
  String sid;
  String sessionType;

  Session({this.pid, this.sid, this.sessionType});

  //管道流
  RTCPeerConnection _pc;
  RTCPeerConnection get pc => _pc;
  set pc(RTCPeerConnection pc) => this._pc = pc;

  //数据通道
  RTCDataChannel _dc;
  RTCDataChannel get dc => _dc;
  set dc(RTCDataChannel dc) => this._dc = dc;

  // 远程会话合集
  List<RTCIceCandidate> _remoteIceCandidate = [];
  List<RTCIceCandidate> get remoteCandidates => _remoteIceCandidate;
}
